package com.example.lesson2.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


@Configuration
@ConfigurationProperties(prefix = "myapp1")
@Data
public class MyApp1 {
    private String host;
    private int port;
    private int db;
    private String password;
    private String namespace;
    private String key_separator;
    private String key_prefix;
    private String key_suffix;
    private int ttl;
    private String redis_host;
    private int redis_port;
    private int redis_db;
    private String redis_password;
}
